﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="News.ascx.cs" Inherits="Pub_Module_News" %>
<div style="background-color: White; padding: 5px; padding-right:20px; padding-bottom:0px" class="div_skin-tango_nobg">
    <asp:GridView ID="grvNews" BorderColor="#ADB6BD" runat="server" Width="100%" AutoGenerateColumns="False"
        ShowHeader="False" AllowPaging="True" GridLines="None" OnRowDataBound="grvNews_RowDataBound"
        BorderWidth="0px" OnPageIndexChanging="grvNews_PageIndexChanging">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <ul class="fixUlBlock" style=" width: 100%;  border-bottom: dotted 1px Orange">
                        <li style="padding-bottom:5px">
                            <asp:Image ID="imgNews" runat="server" Width="120px" Height="120px" align="left"
                                Style="padding-right: 10px" />
                            <a href='<%=ResolveUrl("~/")%>nws/<%#Eval("NewsID") %>/<%#Eval("KindNo") %>.aspx'  style="text-decoration:none">
                                <asp:Label ID="hplTitle" runat="server" CssClass="link_Title1" Font-Bold="true" Text='<%#Eval("Title")%>'></asp:Label></a>
                            <br />
                            <a class="lblContentNews" style="text-decoration: none; padding-right: 20px" href='<%=ResolveUrl("~/")%>nws/<%#Eval("NewsID") %>/<%#Eval("KindNo") %>.aspx'>
                                <asp:Label ID="lblContent" runat="server" Text='<%#LimitWord(Eval("Content").ToString())%>'
                                    CssClass="link_Content1"></asp:Label></a>
                            <div style="text-align: right">
                                <asp:Label ID="lblDate" runat="server" Text='<%#Eval("UpdDate").ToString()%>'
                                    CssClass="lbl_small1"></asp:Label>
                            </div>
                        </li>
                    </ul>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle Font-Bold="False" ForeColor="Green" Wrap="True" />
    </asp:GridView>
</div>
